<div id="wrapFooter">

	<div style="max-width:600px; margin:auto">
	<ul class="nav nav-pills">
    	<li><a href="<?php echo HOME;?>"><i class="fa fa-home"> </i>Trang Chủ</a></li>
        <li><a href="<?php echo HOME;?>danhsach">List Manga</a></li>
        <li><a href="<?php echo HOME;?>blog">Blog</a></li>

 
          <li><a href="<?php echo HOME;?>login">Đăng Nhập </a></li>
            <li><a href="<?php echo HOME;?>index.php?module=user&act=mode&val=1" rel="nofollow">Desktop </a></li>
             <li><a href="<?php echo HOME;?>index.php?module=user&act=mode&val=2" rel="nofollow">Mobile </a></li>
        
    </ul>
    </div>
    
  
<?php if($_SESSION['mobile']==0){?>	

<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
// make pop on new tab
$(document).ready(function(){

    setTimeout(function(){

     Light.Popup.create('http://anime24h.vn', {onNewTab: true,cookieExpires:0.8});}, 10000);

});


</script>


<style>
.dialog-vina{ min-width:700px;}
.md-vina{ text-align:center}
</style>
<!-- Vinagame ads -->
<script type="text/javascript">

/*
	$(document).ready(function(){
		
						popface = $.cookie('popface');
  		            	
	  		  			if(popface == null || popface == '' || typeof popface == 'undefined'){
	  		  				modal = '<div class="modal fade" id="popupface"  data-keyboard="false" data-backdrop="static">';
	  		  				modal +='	  <div class="modal-dialog dialog-vina">';
	  		  				modal +='  <div class="modal-content">';
	  		  				modal +='    <div class="modal-header">';
	  		  				modal +='      <a href="http://123link.ad.zing.vn/www/delivery/newtab.php?zoneid=4259&cb=5208461793&charset=ISO-8859-1"  class="close" data-dismiss="modal"  id="vnglink" target="_blank">&times;</a>';
	  		  				modal +='       <h4 class="modal-title">Quảng Cáo</h4>';
	  		  				modal +='</div>';
	  		  				modal +='<div class="modal-body md-vina">';
	  		  				modal +='<iframe width="700px" height="420px" scrolling="No" frameborder="0" src="ttt.htm" __idm_frm__="2"></iframe>';
	  		  				modal +='</div>';
	  		  			
	  		  				modal +='</div><!-- /.modal-content -->';
	  		  				modal +='</div><!-- /.modal-dialog -->';
	  		  				modal +='</div><!-- /.modal -->';

	  		  				
	  		  				
	  		  				
	  		  			$('body').append(modal);
	  		  				
						
							
	  		  				$('#popupface').modal('show');
	  		  				
	  		  			 	$('#popupface').on('hidden.bs.modal', function () {
										
										//	var w=window.open('http://123link.ad.zing.vn/www/delivery/newtab.php?zoneid=4259&cb=5208461793&charset=ISO-8859-1', '_blank');
	  		  							//  w.focus();
							});
						} //End of popup 1
		

$("#vnglink").click(function(){
		var date = new Date();
 		date.setTime(date.getTime() + (3*60*60 * 1000));
	  	$.cookie('popface', 1, { expires:date, path: '/' });
     var url = $(this).attr("href");
      var win=window.open(url, '_blank');
  		win.focus();
  //   return false;
});

	}) //End of document ready
	*/
	
	
	
	
	
	
	</script>
    
    
    <?php if(1){//Vinagame?>
    <!-- 123Click Ads Code begin -->
    
<script type="text/javascript" >

            (function(d, s, id) {
                        var js, fjs = d.getElementsByTagName(s)[0];
                        if (d.getElementById(id)) {return;}
                        js = d.createElement(s);
                        js.type = 'text/javascript';
                        js.async=true;
                        js.id = id;
                        js.src = "http://static.adtimaserver.vn/resource/js/zads-base-mod.js";
                        fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'z2-jssdk'));
</script>
<div z2-width="600" z2-height="400"  z2-zoneid="1711095212949330549"  class="z2-zads-zone" ></div>
<!-- 123Click Ads Code end -->

<!-- End of vinagame ads-->
<?php } ?>



<?php if($_GET['act']!='episode'){?>
<!-- Cpm star -->





<!-- Ballon ads -->
<?php if(1){?>
<style>
.navbar {

z-index: 99;
border-radius:0px;
}
</style>
<script type="text/javascript">
$(function () {
    var vechaiADS = new VechaiAdsLandR();
    //Append Ads
    vechaiADS.AppendAds();
    //Check image
    var minBrowserWidth = 1255;

    vechaiADS.FixAdsWithWindowsSize(minBrowserWidth);

});



function VechaiAdsLandR() {
    //===Public Functions===
    return {
        AppendAds: function () {
     
            //Create Left Banner
            var adsHtmlLeft = "<div class='divAdsBanner' style='display: block; top: 0px; left: 5px; position: fixed !important'>" +
		  "<a href=\"http://ghengoibet.vn/gioi-thieu-san-pham-ghe-ngoi-bet\" target=\"_blank\" title=\"ghế ngồi bệt, ghế ngồi bệt đa năng\"><img src=\"http://image.manga24h.com/upload/images/2014/10/03/manga24h-left.jpg\" /></a>" +

     // "<a href=\"http://ghengoibet.vn/gioi-thieu-san-pham-ghe-ngoi-bet\" target=\"_blank\" title=\"ghế ngồi bệt, ghế ngồi bệt đa năng\"><img src=\"http://image.manga24h.com/upload/images/2014/10/03/manga24h-left.jpg\" /></a>" +

                              "</div>";

            //Create Right Banner
      
            var adsHtmlRight = "<div class='divAdsBanner' style='display: block; top: 0px; right: 0px; position: fixed !important'>" +

                                  "<a href=\"http://ghengoibet.vn/gioi-thieu-san-pham-ghe-ngoi-bet\" target=\"_blank\" title=\"ghế ngồi bệt, ghế ngồi bệt đa năng\"><img src=\"http://image.manga24h.com/upload/images/2014/10/03/manga24h-right.jpg\" /></a>" +

                              "</div>";



            $('body').append(adsHtmlLeft);

            $('body').append(adsHtmlRight);

        },



        FixAdsWithWindowsSize: function (minWidth) {
            var windowsWidth = $(window).width();
            if (windowsWidth > minWidth) {
                $(".divAdsBanner").show("slow");
            }
            else
                $(".divAdsBanner").hide();
            $(window).resize(function () {
                windowsWidth = $(window).width();
                if (windowsWidth < minWidth) {
                    $(".divAdsBanner").hide();
                }
                else {
                    $(".divAdsBanner").show("slow");
                }

            });

        }

    };
	

}
</script>
<?php } //Off ballon Home?>
<?php }else
if(0) //Start ballon chapter
{  //End ads ballon?>
<!-- Ballon ads -->
<script type="text/javascript">
$(function () {
    var vechaiADS = new VechaiAdsLandR();
    //Append Ads
    vechaiADS.AppendAds();
    //Check image
    var minBrowserWidth = 1255;

    vechaiADS.FixAdsWithWindowsSize(minBrowserWidth);

});



function VechaiAdsLandR() {
    //===Public Functions===
    return {
        AppendAds: function () {
     
            //Create Left Banner
            var adsHtmlLeft = "";

            //Create Right Banner
      
            var adsHtmlRight = "<div class='divAdsBanner' style='display: block; top: 70px; right: 0px; position: fixed !important; z-index:'>" +
                                  "<a href='http://72830.api-05.com/serve?action=click&publisher_id=72830&site_id=60002&offer_id=300432' target='_blank'><img width='130px' height='600px' src='http://image.manga24h.com/upload/images/2014/06/20/130x600_2.gif' /></a>" +

                              "</div>";



            $('body').append(adsHtmlLeft);

            $('body').append(adsHtmlRight);

        },



        FixAdsWithWindowsSize: function (minWidth) {

            var windowsWidth = $(window).width();

            if (windowsWidth > minWidth) {

                $(".divAdsBanner").show("slow");

            }

            else

                $(".divAdsBanner").hide();

            $(window).resize(function () {

                windowsWidth = $(window).width();

                if (windowsWidth < minWidth) {

                    $(".divAdsBanner").hide();

                }

                else {

                    $(".divAdsBanner").show("slow");

                }

            });

        }

    };
	

}
</script>
<?php } //End of ballon chapter?>

    <?php }?>
	
<p class="text-center">
<em>
Thông tin trên website được chúng tôi và thành viên tổng hợp từ internet. Chúng tôi không chịu trách nhiệm về nội dung trên website. Website <a href="<?php echo HOME ?>" title="doc truyen online, đọc truyện tranh online" ><strong>Đọc Truyện tranh online</strong> </a><Br/>
 <b>Link Hay :</b><a href="http://anime24h.vn" title="xem anime online,anime vietsub,anime hay" ><strong>Xem Anime Online</strong> </a>,<a href="http://manga24h.vn">Manga24h</a>
<?php if($_SESSION['mobile']==0){ ?>,<a href='http://truyentranh8.com/conan-tt8/' title='conan, truyện conan' target='_blank'>Truyen tranh Conan</a>,<a target="_blank" title="Truyen Tranh Online" href="http://www.goccay.vn" rel="dofollow">Truyen Tranh Online</a> ,<a href="http://thuvienluatvn.com" target="_blank" title="thư viện pháp luật">Thư Viện Pháp Luật</a>,<a href='http://vechai.info/' title='Website đọc truyện tranh online lớn nhất Việt Nam - truyen tranh' target='_blank'>truyen tranh</a>,
<a href='http://topphimhay.com/' title='Website xem phim hay online lớn nhất Việt Nam - phim hay' target='_blank'>phim hay</a>,<a href="http://www.gameavatar.net" title="game avatar" target="_blank">game avatar</a> ,
<a href="http://www.gameavatar.net/wap" title="tai avatar" target="_blank">tai avatar</a>,
<a href="http://taiavatar.net" title="avatar" target="_blank">avatar</a> ,
<a href="http://taiiwin.vn" title="tai iwin" target="_blank">tai iwin</a>,
<a href="http://taigamebigone.vn" title="tai bigone" target="_blank">tai bigone</a>,
<a href="http://www.gopet.vn" title="gopet" target="_blank">gopet</a>,<a href="http://dangky88.com/" tabindex="_blank">m88</a>,
<?php if($_GET['act']!='episode'){?>
<a href="http://www.chomobi.com" target="_blank" title="Sử dụng smartphone hiệu quả">Sử dụng smartphone hiệu quả</a>
<?php }?>

<?php }?>
 


</em>
</p>
		</div><!-- end #wrapFooter -->
		
	</div><!-- end #wrapAll -->
	
	<div id="errorElementReveal" class="reveal-modal error-reveal-modal" style="display: none;">
		<div class="client-error">
			<div class="text-error">
				<h2>Lỗi</h2>
				<span>Không thể tải nội dung của bài viết. Xin vui lòng refresh trang và thử lại.</span>
			</div>
			
		</div>
	</div>
	
	
		<div id="toTop"></div>
		<?php
			if($_GET['module'] == 'truyen' && $_GET['act'] == 'chuong'){
	echo '<div  id="toBottom">&nbsp;</div>';
}
		?>
  	
	<script type="text/javascript" src="<?php echo BASE_URL; ?>public/exts/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<?php echo BASE_URL; ?>public/exts/js/common.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>public/exts/js/select2.min.js"></script>
	<script type="text/javascript" src="<?= HOME; ?>public/exts/js/jRating.jquery.js"></script>
	<script type="text/javascript" src="<?= BASE_URL ?>public/exts/js/general.js"></script>

    <?php if($_SESSION['mobile']!=0){?>
    <script type='text/javascript' src='public/exts/nav/js/jquery.mCustomScrollbar.concat.min.js'></script>
	<script type='text/javascript' src='public/exts/nav/js/css3aw.js'></script>
	<script type='text/javascript'>
		$(window).load(function(){
			$("#css3aw-main-menu-container").mCustomScrollbar({
				advanced:{
			        updateOnContentResize: true
			    },
			    scrollButtons:{
					enable:true
				},
				theme:"light-thin",
				autoHideScrollbar: true,
				scrollInertia: 450
			});
		});
	</script>
	
	
	
	<?php }?>
<script>
	$(document).ready(function(){
		
		
		$("img.lazy").lazyload({
		 	effect : "fadeIn",
			 failure_limit : 4
		});
		
	  $.scrollUp({
	    scrollName: 'toTop', // Element ID
	    topDistance: '300', // Distance from top before showing element (px)
	    topSpeed: 500, // Speed back to top (ms)
	    animation: 'fade', // Fade, slide, none
	    animationInSpeed: 200, // Animation in speed (ms)
	    animationOutSpeed: 200, // Animation out speed (ms)
	    scrollText: '<img src="public/images/top.png" alt="To top" />', // Text for element
	    activeOverlay: false // Set CSS color to display scrollUp active point, e.g '#00FFFF'
	  })
	
		  $('#toBottom').click(function () {
				$('html, body').animate({scrollTop:$(document).height()}, 'slow');
				return false;
		});
	 
			
	})
     </script> 
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20447985-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- Ads float -->
<?php
if($_SESSION['mobile']==0)
{
	if($_GET['act']=='episode'){ //Ko set cookie o phan hide float, de open chapter moi van hien banner  - ballon
	//if(0){	
 //get chap and hien ads trong trang doc truyen
	 // Hien ads float o trang chu
	?>
	<script>

	
$(document).ready(function() {
	//Ads Right 1 -- Check cookie show of ballon gunz girl-
	/*
	var content = document.getElementById('float_content');
	var hide = document.getElementById('hide_float');
	if($.cookie("floatadschapterleft_manga24h")){
	
		content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float()">Ads By Manga24h.com</a>';
	}else{
	   //HIEN ADS
	
	   content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float()">Đóng Quảng Cáo</a>';
	}
	*/
	//-------- End check cookie of gunz girl
	
	
	//Ads right 2 - Manga24h.com --------
	
	//Ads right 2 - Manga24h.com --------
	/*
	var content = document.getElementById('float_content2');
	var hide = document.getElementById('hide_float2');
	if($.cookie("floatadschapterright1_manga24h")){
		content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float2()">Ads By Manga24h.Com</a>';
	}else{
	   //HIEN ADS
	   content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float2()">Đóng Quảng Cáo</a>';
	}
	*/
	//End of ads right 2 manga24h.com
	
	// Blink b - Cookie check -----------
	/*
	var content = document.getElementById('float_content3');
	var hide = document.getElementById('hide_float3');
	if($.cookie("floatadschapterright_manga24h")){
		content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float3()">Ads By Manga24h.Com</a>';
	}else{
	   //HIEN ADS
	   content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float3()">Đóng Quảng Cáo</a>';
	}
	*/
	//End blinkb cookie check------------
});

function hide_float() { 
	var content = document.getElementById('float_content');
	 var hide = document.getElementById('hide_float'); 
	 if (content.style.display == "none") {
		  content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float()">Close</a>';
		 Delete_Cookie('floatadschapterleft_manga24h','/','')
		  
		  
	  }else{ 
	  content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float()">Gunz Girl</a>'; 
	 Set_Cookie2('floatadschapterleft_manga24h', 'value', '1', '/', '', '');
	  // window.open(' http://gg.rongtamquoc.com/?_c=3060');
	
	 }
 }
 
 function hide_float2() { 
			var content = document.getElementById('float_content2');
			 var hide = document.getElementById('hide_float2'); 
			 if (content.style.display == "none") {
				  content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float2()">Đóng Quảng Cáo</a>';
				 Delete_Cookie('floatadschapterright1_manga24h','/','')
				  
				  
			  }else{ 
			  content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float2()">Ads By Mộng.Vn</a>'; 
			  Set_Cookie('floatadschapterright1_manga24h', 'value', '1', '/', '', '');
			
			  }

  }
  
  
   function hide_float3() { 
			var content = document.getElementById('float_content3');
			 var hide = document.getElementById('hide_float3'); 
			 if (content.style.display == "none") {
				  content.style.display = "block"; hide.innerHTML = '<a href="javascript:hide_float3()">Đóng Quảng Cáo</a>';
				 Delete_Cookie('floatadschapterright_manga24h','/','')
				 
				  
			  }else{ 
			  content.style.display = "none"; hide.innerHTML = '<a href="javascript:hide_float3()">Ads By Manga24h</a>'; 
			  Set_Cookie('floatadschapterright_manga24h', 'value', '1', '/', '', '');
		//	 window.open('http://giangho119.kul.vn/landing-page01.html');
			  }

  }
</script>

<style>
.float-ck { position: fixed; bottom: 0px; z-index: 2099; text-align:right;}
* html .float-ck /* IE6 position fixed Bottom */{position:absolute;bottom:auto;top:expression(eval (document.documentElement.scrollTop+document.docum entElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))) ;}
#hide_float a { background: #01AEF0; padding: 2px; color: #FFF;}
</style>
	<?php if(0){
	//Start float banner right site 2?>
  <style>
#hide_float2 a { background: #01AEF0; padding: 2px; color: #FFF;}
</style>
<div class="float-ck" style="right: 0pt;">
<div id="hide_float2"><a href="javascript:hide_float2()" >Đóng Quảng Cáo</a></div>
<div id="float_content2" style="border: 2px solid rgb(1, 174, 240);background-color:#fff">
<!-- Noi dung quang cao go here -->

<!--/* Revive Adserver Javascript Tag v3.0.5 */-->
<script>flash_load('http://ngocrongdaichien.com/public/banners/marketing/NRDC-Manga24.swf',300,250);</script>
<!-- End Noi dung quang cao go here -->
</div></div>
    <?php
	
	}
?>


<?php
// float chapter right side


	
	
	
	
	
		 if(0){
	//Start float banner left site 2?>
  <style>
#hide_float3 a { background: #01AEF0; padding: 2px; color: #FFF;}
</style>
<div class="float-ck" style="left: 0pt;">
<div id="hide_float3"><a href="javascript:hide_float3()" >Đóng Quảng Cáo</a></div>
<div id="float_content3" style="border: 2px solid rgb(1, 174, 240);background-color:#fff">
<!-- Noi dung quang cao go here -->

<!--/* Revive Adserver Javascript Tag v3.0.5 */-->
<iframe width="160px" height="450px" scrolling="No" frameborder="0" style="overflow:hidden;" src="http://api.adtimaserver.vn/rdext/html?zoneId=1247939533320179233"></iframe>
 
<!-- End Noi dung quang cao go here -->
</div></div>
    <?php
	
	}
?>


<?php
// float chapter right side
	}  //End episode

	
	
}else{ // sesion mobile ==0
?>



  


<?php


} //End mobile ==0
?>

</body>

	
</html>